<template>
  <div class="update-strategy">
    更新策略
    <!-- <el-input
      placeholder="模型名称"
      class="search"
      v-model="sourceName"
      size="small"
    >
      <el-button
        @click="searchSourceList"
        slot="append"
        type="primary"
        icon="el-icon-search"
      ></el-button>
    </el-input>
    <el-table
      size="medium"
      :data="sourceList"
      :cell-style="{ color: '#333333' }"
      :header-cell-style="{ background: '#F3F4F7', color: '#000000' }"
      height="485"
    >
      <el-table-column
        prop="name"
        label="模型名称"
        align="center"
      ></el-table-column>
      <el-table-column label="更新方式" align="center">
        <template slot-scope="scope">
          <el-select
            v-model="scope.row.targetModelId"
            @change="changeTargetModel(scope.row)"
            size="mini"
          >
            <el-option
              v-for="item in modelList"
              :key="item.id"
              :label="item.name"
              :value="item.id"
            >
            </el-option>
          </el-select>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center">
        <template slot-scope="scope">
          <el-link
            :underline="false"
            type="primary"
            class="source-edit"
            @click.native.prevent="openMap(scope.row)"
            >编辑</el-link
          >
        </template>
      </el-table-column>
    </el-table>
    <div class="model-btns-wrapper">
      <div class="model-btns">
        <el-button @click="reset">取消</el-button>
        <el-button type="primary" @click="saveEdit">保存</el-button>
      </div>
    </div> -->
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.source-edit {
  padding: 0 10px;
  & + .source-edit {
    border-left: 1px solid #dddddd;
  }
}
/deep/ .el-table__append-wrapper {
  padding: 10px;
}
.search {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
}
.el-table {
  margin-top: 62px;
}
.model-btns-wrapper {
  display: flex;
  justify-content: center;
  .model-btns {
    width: 200px;
    display: flex;
    justify-content: space-around;
    margin-top: 28px;
  }
}
</style>
